package com.china.produce.manager.tree.thread;

import com.china.produce.mapper.study.ActivityMapper;
import com.china.produce.pojo.node.SkuVO;

import java.util.concurrent.Callable;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2025/2/23
 */
public class QuerySkuVOFromDBThreadTask implements Callable<SkuVO> {


    private final String goodsId;

    private final ActivityMapper activityMapper;


    public QuerySkuVOFromDBThreadTask(String goodsId, ActivityMapper activityMapper) {
        this.goodsId = goodsId;
        this.activityMapper = activityMapper;
    }
    @Override
    public SkuVO call() throws Exception {

        return activityMapper.querySkuByGoodsId(goodsId);
    }
}
